package edu.sctu.liangyuxiang.day20150515;

/**
 * Created by user20 on 2015/5/15.
 */
public class Main {
    public static void main(String[] args) {
        Student[] student = new Student[10];
        for (int i = 0; i < student.length ; i++) {
            student[i] = new Student();
            student[i].setStudent(140610 + i, 20 + i, 55 + i, "张三" + i, "成都市" + i, "男");
        }
        TextTwo textTwo = new TextTwo(student);
//        textTwo.output();
//
//        TextThree textThree = new TextThree(student);
//        textThree.output();


        textTwo.set(new Interface(){

            @Override
            public Student[] getString(int age) {
                Student[] studenttwo = new Student[10];
                for (int i = 0; i < student.length; i++) {
                    if (student[i].getAge()> age) {
                         studenttwo[i] = student[i];
                    }
                }
               return studenttwo;
            }
        });

    }
}